\psset{unit=0.5,algebraic}
\begin{pspicture}(-2,-1)(2,4.5)
\psaxes[labelFontSize=\scriptstyle,ticksize=-3pt 0,labelsep=2pt]{<->}(0,0)(-2.5,-1)(2.5,4.5)
\psplot[linecolor=blue]{-2}{2}{x^2}
\psline[linecolor=red,linestyle=dotted](1.5,-0.1)(1.5,2.25)(-0.1,2.25)
\psxTick[ticksize=-3pt 0,labelsep=3pt](1.5){\color{red}x}
\psyTick[ticksize=-3pt 0,labelsep=3pt](2.25){\color{red}y}
\end{pspicture}